﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Blog.Huge.Core;
using FluentNHibernate.Mapping;

namespace Blog.Huge.Data.NHibernateMaps
{
    public class PostMap:ClassMap<Post>
    {
        public PostMap()
        {
            WithTable("bh_Posts");
            Id(x => x.ID, "ID")
                .WithUnsavedValue(0)
                .GeneratedBy.Identity();
            Map(x => x.Title);
            Map(x => x.Content);
        }
    }
}
